#include <iostream>

class Parent
{
private:
	int a = 0;
	int b = 1;
	int* c = nullptr;
public:
	Parent()
	{
		c = new int(2);
	}
	~Parent()
	{
		delete(c);
	}
};

class Child : public Parent
{
private:
	int* d = nullptr;
	int e = 0;
public:
	Child()
	{
		d = new int(3);
	}
	~Child()
	{
		delete(d);
	}
};

int main()
{
	Parent p;
	Child c;

	p.~Child();
}